.class public Lcom/melesta/payment/sms/SmsRecuestBuilder;
.super Ljava/lang/Object;
.source "SmsRecuestBuilder.java"

# interfaces
.implements Lcom/melesta/payment/interfaces/IRequestBuilder;


# static fields
.field private static final MESSAGE_TAG:Ljava/lang/String; = "message"

.field private static final NAME_TAG:Ljava/lang/String; = "name"

.field private static final NUMBER_TAG:Ljava/lang/String; = "number"


# instance fields
.field private request:Lcom/melesta/payment/sms/SmsRequest;


# direct methods
.method public constructor <init>(Lcom/melesta/payment/sms/SmsSystem;)V
    .locals 1
    .parameter "system"

    .prologue
    .line 13
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 14
    new-instance v0, Lcom/melesta/payment/sms/SmsRequest;

    invoke-direct {v0, p1}, Lcom/melesta/payment/sms/SmsRequest;-><init>(Lcom/melesta/payment/sms/SmsSystem;)V

    iput-object v0, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    .line 15
    return-void
.end method


# virtual methods
.method public bridge synthetic createRequest()Lcom/melesta/payment/interfaces/IRequest;
    .locals 1

    .prologue
    .line 5
    invoke-virtual {p0}, Lcom/melesta/payment/sms/SmsRecuestBuilder;->createRequest()Lcom/melesta/payment/sms/SmsRequest;

    move-result-object v0

    return-object v0
.end method

.method public createRequest()Lcom/melesta/payment/sms/SmsRequest;
    .locals 2

    .prologue
    .line 19
    new-instance v0, Lcom/melesta/payment/sms/SmsRequest;

    iget-object v1, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {v1}, Lcom/melesta/payment/sms/SmsRequest;->getSystem()Lcom/melesta/payment/sms/SmsSystem;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/melesta/payment/sms/SmsRequest;-><init>(Lcom/melesta/payment/sms/SmsSystem;)V

    iget-object v1, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {v1}, Lcom/melesta/payment/sms/SmsRequest;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/melesta/payment/sms/SmsRequest;->setName(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsRequest;

    move-result-object v0

    iget-object v1, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {v1}, Lcom/melesta/payment/sms/SmsRequest;->getNumber()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/melesta/payment/sms/SmsRequest;->setNumber(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsRequest;

    move-result-object v0

    iget-object v1, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {v1}, Lcom/melesta/payment/sms/SmsRequest;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/melesta/payment/sms/SmsRequest;->setMessage(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsRequest;

    move-result-object v0

    return-object v0
.end method

.method public get(Ljava/lang/String;)Ljava/lang/Object;
    .locals 1
    .parameter "param"

    .prologue
    .line 38
    const-string v0, "name"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 39
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {v0}, Lcom/melesta/payment/sms/SmsRequest;->getName()Ljava/lang/String;

    move-result-object v0

    .line 44
    :goto_0
    return-object v0

    .line 40
    :cond_0
    const-string v0, "number"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 41
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {v0}, Lcom/melesta/payment/sms/SmsRequest;->getNumber()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 42
    :cond_1
    const-string v0, "message"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 43
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {v0}, Lcom/melesta/payment/sms/SmsRequest;->getMessage()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 44
    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public set(Ljava/lang/String;Ljava/lang/Object;)Lcom/melesta/payment/interfaces/IRequestBuilder;
    .locals 2
    .parameter "param"
    .parameter "value"

    .prologue
    .line 27
    const-string v0, "name"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 28
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/melesta/payment/sms/SmsRequest;->setName(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsRequest;

    .line 33
    :cond_0
    :goto_0
    return-object p0

    .line 29
    :cond_1
    const-string v0, "number"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 30
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/melesta/payment/sms/SmsRequest;->setNumber(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsRequest;

    goto :goto_0

    .line 31
    :cond_2
    const-string v0, "message"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 32
    iget-object v0, p0, Lcom/melesta/payment/sms/SmsRecuestBuilder;->request:Lcom/melesta/payment/sms/SmsRequest;

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/melesta/payment/sms/SmsRequest;->setMessage(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsRequest;

    goto :goto_0
.end method
